home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Instant Bartender
/
Instant Bartender.iso
/
BAR.MME
< prev
next >
Wrap
Text File
|
1995-04-10
|
9KB
|
538 lines
//bar.mme
declare red, green, blue, white, black, yellow, darkb
declare xclick, yclick, hh, xp, yp, lightb, darkb2, lightb2
declare x, y, w, i, h, ys, xs, xh, xr, yhr, ix, iy, rand
black = rgb(0,0,0)
white = rgb(255,255,255)
red = rgb(255,0,0)
green = rgb(0,255,0)
blue = rgb(0,0,255)
yellow = rgb(255,255,0)
lightb = rgb(181,159,148)
lightb2 = rgb(170,130,130)
darkb = rgb(66,24,33)
darkb2 = rgb(93,51,41)
create_button but1
create_button but2
create_button but3
create_button but4
create_button but5
create_button but6
create_button but7
create_button but8
create_button but9
create_button but10
create_button but11
create_button but12
create_button but13
create_button but14
create_button but15
create_button but16
create_button but17
create_button but18
create_button but19
create_button but20
create_button but21
create_button but22
create_button but23
create_button but24
create_button but25
create_button but26
create_picture pic1
play_midi "bar3.mid"
screen.tile = 0
set_palette "openbar.bmp"
screen.name = "openbar.bmp"
delay 5000
main:
call clear
screen.tile = 0
screen.backcolor = black
set_palette "pdabar.bmp"
screen.name = "pdabar.bmp"
x = 85
y = 325
ix = 116
but1.left = x
but1.top = y
but1.autosize = 2
but1.name = "mixers.bmp"
but1.visible = 1
x = x + ix + 1
but2.left = x
but2.top = y
but2.autosize = 2
but2.name = "basics.bmp"
but2.visible = 1
x = x + ix - 3
but3.left = x
but3.top = y
but3.autosize = 2
but3.name = "recipes.bmp"
but3.visible = 1
x = x + ix
but4.left = x
but4.top = y
but4.autosize = 2
but4.name = "stocking.bmp"
but4.visible = 1
but5.left = 560
but5.top = 445
but5.autosize = 2
but5.name = "exit.bmp"
but5.visible = 1
loop1:
if but1.pressed = 1
goto equip
endif
if but2.pressed = 1
goto measure
endif
if but3.pressed = 1
goto index
endif
if but4.pressed = 1
goto stock
endif
if but5.pressed = 1
goto done
endif
if midi.done = 1
play_midi "bar3.mid"
endif
goto loop1
equip:
call clear
screen.tile = 0
screen.backcolor = black
play_midi "bar1.mid"
set_palette "bigbrick.bmp"
screen.name = "bigbrick.bmp"
screen.tile = 2
screen.top = 50
screen.left = 75
screen.name = "sourmix.bmp"
screen.left = 373
screen.name = "sweesour.bmp"
screen.top = 260
screen.left = 75
screen.name = "tcollins.bmp"
screen.left = 373
screen.name = "syrup.bmp"
but22.left = 275
but22.top = 435
but22.autosize = 2
but22.name = "mxreturn.bmp"
but22.visible = 1
equip1:
if but22.pressed = 1
goto main
endif
if midi.done = 1
play_midi "bar1.mid"
endif
goto equip1
stock:
call clear
screen.backcolor = black
play_midi "bar2.mid"
set_palette "stockbar.bmp"
screen.tile = 0
screen.name = "stockbar.bmp"
but22.left = 537
but22.top = 7
but22.autosize = 2
but22.name = "sreturn.bmp"
but22.visible = 1
stock1:
if but22.pressed = 1
goto main
endif
if midi.done = 1
play_midi "bar2.mid"
endif
goto stock1
index:
call clear
screen.tile = 2
play_midi "bar4.mid"
screen.backcolor = black
set_palette "drink1.bmp"
screen.backcolor = lightb
ys = 321
screen.top = ys
screen.left = 0
screen.name = "brick.bmp"
//display beverage
hypertext.width = 310
hypertext.height = 290
hypertext.top = 30
hypertext.left = 25
hypertext.margin = 10
hypertext.textcolor = darkb
hypertext.backcolor = lightb
hypertext.titlecolor = red
hypertext.highcolor = darkb
hypertext.bold = 0
hypertext.bodysize = 10
hypertext.titlesize = 12
hypertext.showtitle = 1
hypertext.wordjump = 0
hypertext.border = 0
hypertext.tab = 50
hypertext.name = "recipes"
hypertext.visible = 1
//display brick buttons
y = ys + 45
x = 25
but11.left = x
but11.top = y
but11.autosize = 2
but11.name = "next.bmp"
but11.visible = 1
y = y + 50
but12.left = x
but12.top = y
but12.autosize = 2
but12.name = "previous.bmp"
but12.visible = 1
y = ys + 45
x = x + 135
but14.left = x
but14.top = y
but14.autosize = 2
but14.name = "category.bmp"
but14.visible = 1
y = y + 50
but13.left = x + 45
but13.top = y
but13.autosize = 2
but13.name = "name.bmp"
but13.visible = 1
y = ys + 45
x = x + 100
but15.left = x
but15.top = y
but15.autosize = 2
but15.name = "ingred.bmp"
but15.visible = 1
y = ys + 45
x = x + 135
xs = x
i = 35
but18.left = x
but18.top = y
but18.autosize = 2
but18.name = "quan1.bmp"
but18.visible = 1
x = x + i
but19.left = x
but19.top = y
but19.autosize = 2
but19.name = "quan2.bmp"
but19.visible = 1
x = x + i
but20.left = x
but20.top = y
but20.autosize = 2
but20.name = "quan3.bmp"
but20.visible = 1
x = xs
y = y + i
but21.left = x
but21.top = y
but21.autosize = 2
but21.name = "quan4.bmp"
but21.visible = 1
x = x + i
but22.left = x
but22.top = y
but22.autosize = 2
but22.name = "quan5.bmp"
but22.visible = 1
x = x + i
but23.left = x
but23.top = y
but23.autosize = 2
but23.name = "quan6.bmp"
but23.visible = 1
x = xs
y = y + i
but24.left = x
but24.top = y
but24.autosize = 2
but24.name = "quan7.bmp"
but24.visible = 1
x = x + i
but25.left = x
but25.top = y
but25.autosize = 2
but25.name = "quan8.bmp"
but25.visible = 1
x = x + i
but26.left = x
but26.top = y
but26.autosize = 2
but26.name = "quan9.bmp"
but26.visible = 1
y = ys + 45
x = 525
but16.left = x
but16.top = y
but16.autosize = 2
but16.name = "print.bmp"
but16.visible = 1
y = y + 50
but17.left = x
but17.top = y
but17.autosize = 2
but17.name = "return.bmp"
but17.visible = 1
label1:
//next and previous buttons
call getrand
if midi.done = 1
play_midi "bar4.mid"
endif
if but11.pressed = 1
hypertext.titlecolor = rand
hypertext.bodysize = 10
hypertext.titlesize = 12
hypertext.next = 1
endif
if but12.pressed = 1
hypertext.titlecolor = rand
hypertext.bodysize = 10
hypertext.titlesize = 12
hypertext.previous = 1
endif
//search types
if but13.pressed = 1
hypertext.titlecolor = rand
pic1.visible = 0
load_topic "index|"
endif
if but14.pressed = 1
hypertext.titlecolor = rand
pic1.visible = 0
load_topic "category|"
endif
if but15.pressed = 1
hypertext.titlecolor = rand
hypertext.bodysize = 9
hypertext.titlesize = 12
pic1.visible = 0
load_topic "ingredients|"
hypertext.bodysize = 10
hypertext.titlesize = 12
endif
//print and return
if but16.pressed = 1
hypertext.print = 1
endif
if but17.pressed = 1
goto main
endif
//quantities
if but18.pressed = 1
hypertext.quantity = 1
hypertext.refresh = 0
endif
if but19.pressed = 1
hypertext.quantity = 2
hypertext.refresh = 0
endif
if but20.pressed = 1
hypertext.quantity = 3
hypertext.refresh = 0
endif
if but21.pressed = 1
hypertext.quantity = 4
hypertext.refresh = 0
endif
if but22.pressed = 1
hypertext.quantity = 5
hypertext.refresh = 0
endif
if but23.pressed = 1
hypertext.quantity = 6
hypertext.refresh = 0
endif
if but24.pressed = 1
hypertext.quantity = 7
hypertext.refresh = 0
endif
if but25.pressed = 1
hypertext.quantity = 8
hypertext.refresh = 0
endif
if but26.pressed = 1
hypertext.quantity = 9
hypertext.refresh = 0
endif
goto label1
measure:
call clear
screen.tile = 0
screen.backcolor = black
play_midi "bar5.mid"
set_palette "measure.bmp"
screen.name = "measure.bmp"
but22.left = 540
but22.top = 400
but22.autosize = 2
but22.name = "mreturn.bmp"
but22.visible = 1
measure1:
if but22.pressed = 1
goto main
endif
if midi.done = 1
play_midi "bar5.mid"
endif
goto measure1
done:
end
dopic:
pic1.visible = 0
pic1.left = 375
pic1.top = 30
pic1.autosize = 1
pic1.border = 1
// pic1.line = 20, black
set_palette "drink;param;.bmp"
pic1.name = "drink;param;.bmp"
pic1.visible = 1
return
clear:
hypertext.visible = 0
pic1.visible = 0
but1.visible = 0
but2.visible = 0
but3.visible = 0
but4.visible = 0
but5.visible = 0
but6.visible = 0
but7.visible = 0
but8.visible = 0
but9.visible = 0
but10.visible = 0
but11.visible = 0
but12.visible = 0
but13.visible = 0
but14.visible = 0
but15.visible = 0
but16.visible = 0
but17.visible = 0
but18.visible = 0
but19.visible = 0
but20.visible = 0
but21.visible = 0
but22.visible = 0
but23.visible = 0
but24.visible = 0
but25.visible = 0
but26.visible = 0
return
getrand:
xr = param%6
rand = black
if xr = 2
rand = white
endif
if xr = 3
rand = red
endif
if xr = 4
rand = green
endif
if xr = 5
rand = blue
endif
if xr = 0
rand = yellow
endif
return